]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Ensure that all signatures are defined in DBus interfaces
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 26 Feb 2011 18:21:10 +0000 (19:21 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 28 Feb 2011 17:40:57 +0000 (18:40 +0100)
The DBus JS binding will complain if the signature of a method
or of a signal is undefined, so we need to define it even if it
is an empty string, and we need to use the correct property name
for signals.

https://bugzilla.gnome.org/show_bug.cgi?id=643374

js/misc/gnomeSession.js
js/ui/endSessionDialog.js
js/ui/status/power.js

index ef4ef848d63f3cdba9e9530df60fbe2df1f7f8da..ce4e7e9d3e80802ea6496076129601cfa42461f6 100644 (file)
@@ -7,7 +7,8 @@ const Signals = imports.signals;
 const PresenceIface = {
     name: 'org.gnome.SessionManager.Presence',
     methods: [{ name: 'SetStatus',
-                inSignature: 'u' }],
+                inSignature: 'u',
+                outSignature: '' }],
     properties: [{ name: 'status',
                    signature: 'u',
                    access: 'readwrite' }],
index be64427e09cc4ba6b9560dc17729a44a883a3d18..08c5705c9170524afa1ef69cd3870e3e30b7525a 100644 (file)
@@ -54,7 +54,7 @@ const EndSessionDialogIface = {
               }
              ],
     signals: [{ name: 'Canceled',
-                outSignature: '',
+                inSignature: '',
               }],
     properties: []
 };
index 263d48e3daa37576359c3e991f3cecaee16e1daa..94469334d4881f34e454faa3a33d444baa9cab2c 100644 (file)
@@ -49,7 +49,7 @@ const PowerManagerInterface = {
         { name: 'GetPrimaryDevice', inSignature: '', outSignature: '(susbut)' },
         ],
     signals: [
-        { name: 'Changed', outSignature: '' },
+        { name: 'Changed', inSignature: '' },
         ],
     properties: [
         { name: 'Icon', signature: 's', access: 'read' },